package com.acc.mobileappr.scheduler.jobs;

import com.acc.mobileappr.constant.AppConstant;
import com.acc.mobileappr.util.PushUtil;
import com.acc.mobileappr.util.Util;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * Push Beat
 * Just a test for sending push for alive
 * @author Abil@ICN
 */
public class PushBeatJob implements Job {

    /**
     * execute job
     * @param jobExecutionContext     job execution context
     * @throws JobExecutionException  job execution exception
     */
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {

        String userPin= AppConstant.getProperty("device.testpin") ;
        String pushId="BEAT";
        String data="True";

        //push baby push..oh ah yess
        PushUtil pushUtil = new PushUtil();
        String status=pushUtil.pushData(userPin,pushId,data);
        
        Util.print("True");

    }
}
